﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace form
{
    class DAL_customer
    {
        public DAL_customer()
        {}
        public void InsertCustomer(int id, string name)
        {
        SqlConnection co = new SqlConnection();
        co.ConnectionString="Data Source=(local);Initial Catalog=sale; User Id=sa; Password=sa";
        co.Open();
        SqlCommand cmd = new SqlCommand("insert into customers values ("+id.ToString()+",'" +name+ "')",co);
        cmd.ExecuteNonQuery();
        co.Close();
        }
    }
}
